package com.xiaolong.web;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
public class CommonController extends BaseController {

	@RequestMapping(value={"/","/index"},method=RequestMethod.GET)
	public ModelAndView toIndex(){
		
		return new ModelAndView("index");
	}
	
	@RequestMapping(value="/login",method=RequestMethod.GET)
	public ModelAndView toLogin(){
		return new ModelAndView("/login");
	}
	
	@RequestMapping(value="/logout",method=RequestMethod.GET)
	public ModelAndView toLogout(){
		return new ModelAndView("/login");
	}
}
